<?php
	class Person extends AppModel
	{
	
		var $hasMany = array('Address' =>
                         array('className'     => 'Address',
                               'conditions'    => '',
                               'order'         => '',
                               'limit'         => '',
                               'foreignKey'    => 'person_id',
                               'dependent'     => true,
                               'exclusive'     => false,
                               'finderQuery'   => ''
                         )
                  );
                  
	
		function update($data){
   	             $this->set($data);
		     $this->save($data);
		}
		
		
		function afterSave()   	{

		}

	}
?>
